package com.wanmait.mpdemo.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wanmait.mpdemo.entity.QuestionType;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wanmait
 * @since 2022-01-14
 */
public interface QuestionTypeMapper extends BaseMapper<QuestionType> {
    void increaseQuestionCount(Integer id);
    //List<QuestionType> findAll(@Param(Constants.WRAPPER) Wrapper<QuestionType> wrapper);
    @Select("<script>select * from question_type <if test='ew!=null'>${ew.customSqlSegment}</if></script>")
    List<QuestionType> findAll(@Param("ew") Wrapper<QuestionType> wrapper);
}
